package com.project_test.kun.travelling_1st.HomePage.category;

import org.json.JSONException;
import org.json.JSONObject;

import java.io.Serializable;

/**
 * Created by Administrator on 16-10-16.
 */
public class facility_HPHouseDetail implements Serializable {

    private int mFid;
    private String mStatus;
    private String mName;
    private int mType;
    private String mIcon;

    public void pashJson(JSONObject json) throws JSONException {
//        "fid": "85",
        mFid = json.getInt("fid");
//                "status": "1",
        mStatus = json.getString("status");
//                "name": "无线上网",
        mName = json.getString("name");
//                "type": "1",
        mType = json.getInt("type");
//                "icon": "http://img2.handybest.com/Uploads/Picture/2016-05-16/57395af56d652.png!phone"
        mIcon = json.getString("icon");
    }

    public int getFid() {
        return mFid;
    }

    public String getStatus() {
        return mStatus;
    }

    public String getName() {
        return mName;
    }

    public int getType() {
        return mType;
    }

    public String getIcon() {
        return mIcon;
    }

    @Override
    public String toString() {
        return "facility_HPHouseDetail{" +
                "mFid=" + mFid +
                ", mStatus='" + mStatus + '\'' +
                ", mName='" + mName + '\'' +
                ", mType=" + mType +
                ", mIcon='" + mIcon + '\'' +
                '}';
    }
}
